//
//  UIImage+common.h
//  YC_GRice
//
//  Created by LiuFeng on 2018/7/21.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, UIImageCompression) {
    UIImageCompressionStandard = 0,
    UIImageCompressionHighly,
    UIImageCompressionOriginal,
};

@interface UIImage (common)


/**
 图片压缩

 @param compression 压缩类型
 @return <#return value description#>
 */
- (NSData *)imageCompression:(UIImageCompression)compression;


- (UIImage *)drawImageWithSize:(CGSize)size;


@end
